#include<cstdio>
char HMonth[19][10]={"pop","no","zip","zotz","tzec","xul","yoxkin","mol","chen","yax","zac","ceh","max","kankin","muan","pax","koyab","cumhu","uayet"};
char TDay[20][10]={"imix","ik","akbal","kan","chicchan","cimi","manik","lamat","muluk","ok","chuen","eb","ben","ix","mem","cib","caban","eznab","canac","ahau"};
int n;
int main()
{
	scanf("%d",&n);
	for(int i=1;i<=n;i++)
	{

